import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'bootstrap/dist/css/bootstrap.min.css'

import 'element-plus/theme-chalk/display.css'

//字节图标样式
import '@icon-park/vue-next/styles/index.css';

//axios
import axios from './store/axios'


router.beforeEach((to, from, next) => {
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next()
})
var app = createApp(App);


app.use(store).use(router).use(ElementPlus).mount("#app");
app.config.globalProperties.$http = axios;